From: Roger Pau Monne Date: Fri, 22 Sep 2017 15:25:11 +0000 (+0100) Subject: libxl: add PVH support to USB X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1295 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:///%22http:/www.example.com/cgi/%22https:/?a=commitdiff_plain;h=67b9c24910239ffae519f90d341af6058239364b;p=xen.git libxl: add PVH support to USB Add PVH support to usb related functions. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- diff --git a/tools/libxl/libxl_usb.c b/tools/libxl/libxl_usb.c index 1d5a2432ba..cb0e792724 100644 --- a/tools/libxl/libxl_usb.c +++ b/tools/libxl/libxl_usb.c @@ -46,13 +46,13 @@ static int libxl__device_usbctrl_setdefault(libxl__gc *gc, uint32_t domid, libxl_domain_type domtype = libxl__domain_type(gc, domid); if (usbctrl->type == LIBXL_USBCTRL_TYPE_AUTO) { - if (domtype == LIBXL_DOMAIN_TYPE_PV) { + if (domtype != LIBXL_DOMAIN_TYPE_HVM) { rc = usbback_is_loaded(gc); if (rc < 0) goto out; usbctrl->type = rc ? LIBXL_USBCTRL_TYPE_PV : LIBXL_USBCTRL_TYPE_QUSB; - } else if (domtype == LIBXL_DOMAIN_TYPE_HVM) { + } else { /* FIXME: See if we can detect PV frontend */ usbctrl->type = LIBXL_USBCTRL_TYPE_DEVICEMODEL; }